<?php
/*****************************************************************************
 *              Projet Master RIM : Reconnaissance de panneaux               *
 *                    Guillaume MONTAVON & Renaud DAVID                      *
 *                                                                           *
 *                          Page d'accueil du site                           *
 *****************************************************************************/

include_once("header.inc.php");

?>

	<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
	<script type="text/javascript" src="js/index.js"></script>

	<h1>Liste des panneaux</h1>

	<div id="map" style="z-index:1;height:600px;width:100%;"></div>

	<?php
		
		$req = "SELECT * FROM panneau WHERE panneauValide<>0";
		$resPan = mysql_query($req);
		$nb = mysql_num_rows($resPan);
		echo '<br/><br/>Nombre de panneaux enregistrés : <span><b>'.$nb.'</b></span>';
	?>
	<br/><br/><br/><br/>
	
	<div id="importexport" class="boite_bleu">
		
		<div style="font-size:3.0em;">Exportation</div>
		<br/><br/>
		
		<button id="boutonTelechargerGPX" type="button" name="boutonTelechargerGPX">Télécharger la liste des panneaux (format GPX)</button>
		<br/><br/>
		
		<button id="boutonTelechargerPhotos" type="button" name="boutonTelechargerPhotos">Télécharger les Photos (archive ZIP)</button>
		<div id="loadTelPhotos" style="display: inline-block;"></div>
		<br/><br/>
		
		<div id="importation">
			<?php echo obtenirFormImportation(); ?>
	
	</div>

	
<?php

include_once("footer.inc.php");

?>